﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ProjectStudy.WebService
{
    public partial class webService : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            WebService1 ws = new WebService1();
            List<Student> list= ws.HelloStudent();
            TextBox1.Text = "姓名：" + list[0].Name + "性别:" + list[0].Sex + ",年龄：" + list[0].Age + Environment.NewLine+ "姓名：" + list[1].Name + "性别:" + list[1].Sex + ",年龄：" + list[1].Age;

        }

        
    }
}